/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.metashare.grah.logic

/**
 *
 * @author dsherema
 */

class Not implements Predicate {

  def Object object
  def Predicate predicate


  def Not( Predicate predicate ) {
    this.predicate = predicate;
  }

  def boolean apply(Object o) { return !( predicate.apply(object)) }
}